package moxl.parser.assemblers.pi;

import moxl.parser.ParserException;
import moxl.parser.assemblers.CommonStateDelegateBase;
import moxl.tokenizer.TokenizerException;

public class ProcessingInstructionStateDelegateBase extends CommonStateDelegateBase<ProcessingInstructionAssemblerState>
{
	protected void acceptOpenChevronQuestionMark(ProcessingInstructionAssemblerContext ctx) throws ParserException, TokenizerException
	{
		error(ctx);
	}

	protected void acceptName(ProcessingInstructionAssemblerContext ctx) throws ParserException, TokenizerException
	{
		error(ctx);
	}

	protected void acceptProcessingInstructionBody(ProcessingInstructionAssemblerContext ctx) throws ParserException, TokenizerException
	{
		error(ctx);
	}

	private void error(ProcessingInstructionAssemblerContext ctx) throws ProcessingInstructionAssemblerStateException
	{
		throw new ProcessingInstructionAssemblerStateException(ctx);
	}

}
